const seq = require('../db/seq')

const Course = require('../model/courses.model')
const Category = require('../model/category.model')

//建立表关联
Course.belongsTo(Category, {
  foreignKey: 'cat_id',
  as: 'courseInfo'
})

// Chapter.belongsTo(Course)
//同步所有模型
// seq.sync({ alter: true }).then((res) => {
//   console.log('所有模型同步成功1111！')
// })
